cmake_minimum_required(VERSION 2.8.12)
project(srbpy)

# Set include directories

# Set source directory
set(SOURCE_DIR ".")
set(ROOT "../../..")

# Tell CMake that headers are also in SOURCE_DIR
include_directories(${SOURCE_DIR})

set(Boost_INCLUDE_DIR C:/boost_1_79_0)
include_directories(${Boost_INCLUDE_DIR})

set(SOURCES
        ${SOURCE_DIR}/binding.cpp
        ${SOURCE_DIR}/gfunc.cpp
        )

# Generate Python module
add_subdirectory(C:/pybind11-2.11.1 pybind11_dir)
pybind11_add_module(gfunc ${SOURCES})

#find_package(PythonLibs 3 REQUIRED)
find_package(Python3 COMPONENTS Interpreter Development)
#set(PYTHON_LIBRARY C:/Program Files/Python38/libs)
#set(PYTHON_INCLUDE_DIR C:/Program Files/Python38/include)

include_directories(
        ${PYTHON_INCLUDE_DIRS}
        lib
        lib/pybind11/include
)

